<?php if($browse){?>

<div class="panel panel-warning">
	<div class="panel-heading title"><span class="text-black">ALL LAWYERS</span></div>
	
	<!--<?php echo Modules::run('listing/featured/showListing',$cityID=0,$limit=2); ?>
	-->
	<ul class="list-group ">


		<?php foreach ($browse as $listing):?>
		<li class="list-group-item clearfix"> <img
			class="col-lg-2 img-responsive" alt="Responsive image"
			src="<?=base_url();?>assets/images/photo/<?= $listing->photo; ?>">

			<div class="col-lg-10">

				<h4 class="list-group-item-heading">
					<a class="text-danger" href="<?= base_url();?>profile/<?= $this->commoncall->url($listing->title);?>-<?= $listing->id;?>"><strong><?= $listing->title; ?></strong> </a>
				</h4>
				
				<p class="list-group-item-text text-muted">
					<strong> <?= $listing->address1 ? $listing->address1 : ''; ?> <?= $listing->address2 ? ", ".$listing->address2 : ''; ?>
					</strong>
				</p>



				<div class="list-group-item-text text-muted">
					<div class="text-info">
						<?= $listing->city != '' ? $this->location_model->get_city_data($listing->city)->cityname : ''; ?>
						<?= $listing->state != '' ? ", ".$this->location_model->get_region_data($listing->state)->statename : ''; ?>
					</div>
				</div>

				<p>
				
				
				<ul class="list-inline small">
					<span>Area :</span>
					<?php
				$keyword = $this->listing_model->getKeywordAll($listing->id,10);
				?>
				<?php if($keyword){?>
				<?php foreach($keyword as $keyword):?>
				<a class="small text-muted" href="<?= base_url()."browse/practice/".$this->commoncall->url($this->listing_model->getCategory($keyword->term_value)->name)."-".$keyword->term_value; ?>"><?= $this->listing_model->getCategory($keyword->term_value)->name; ?>,</a>
				<?php endforeach;}?>
				</ul>
				</p>

				<?php 
						$review_overall = $this->listing_model->getRatting($listing->id);
						?>
						<?php if($review_overall){?>
						
									<?php 
									$rating = $review_overall->experience;
									for ($i = 1; $i <= $rating; $i++) { ?>
									<img alt="ratting"
										src="<?= base_url(); ?>assets/images/star1.jpg" />
									<?php }
									for ($i = 1; $i <= 5 - $rating; $i++) { ?>
									<img alt="ratting"
										src="<?= base_url(); ?>assets/images/star0.jpg" />
									<?php } ?>
											(<?= $this->listing_model->count_reviews($listing->id);?>)
					
					<?php }else{?>
						<img alt="ratting"
						src="<?= base_url(); ?>assets/images/star0.jpg" />
						<img alt="ratting"
						src="<?= base_url(); ?>assets/images/star0.jpg" />
						<img alt="ratting"
						src="<?= base_url(); ?>assets/images/star0.jpg" />
						<img alt="ratting"
						src="<?= base_url(); ?>assets/images/star0.jpg" />
						<img alt="ratting"
						src="<?= base_url(); ?>assets/images/star0.jpg" />
						(<?= $this->listing_model->count_reviews($listing->id);?>)
						<?php }?>
						reviews

			</div>
		
		</li>
		<?php endforeach;?>
	</ul>
	
	
	
	<ul class="pagination pull-right">
  <li><?php  echo $this->pagination->create_links(); ?></li>
  
</ul>
</div>



<?php }?>
